package com.ruoyi.message.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.message.mapper.MessageReplyMapper;
import com.ruoyi.message.domain.MessageReply;
import com.ruoyi.message.service.IMessageReplyService;

/**
 * 评论Service业务层处理
 * 
 * @author hct
 * @date 2022-04-14
 */
@Service
public class MessageReplyServiceImpl implements IMessageReplyService 
{
    @Autowired
    private MessageReplyMapper messageReplyMapper;

    /**
     * 查询评论
     * 
     * @param id 评论主键
     * @return 评论
     */
    @Override
    public MessageReply selectMessageReplyById(Long id)
    {
        return messageReplyMapper.selectMessageReplyById(id);
    }

    /**
     * 查询评论列表
     * 
     * @param messageReply 评论
     * @return 评论
     */
    @Override
    public List<MessageReply> selectMessageReplyList(MessageReply messageReply)
    {
        return messageReplyMapper.selectMessageReplyList(messageReply);
    }

    /**
     * 新增评论
     * 
     * @param messageReply 评论
     * @return 结果
     */
    @Override
    public int insertMessageReply(MessageReply messageReply)
    {
        return messageReplyMapper.insertMessageReply(messageReply);
    }

    /**
     * 修改评论
     * 
     * @param messageReply 评论
     * @return 结果
     */
    @Override
    public int updateMessageReply(MessageReply messageReply)
    {
        return messageReplyMapper.updateMessageReply(messageReply);
    }

    /**
     * 批量删除评论
     * 
     * @param ids 需要删除的评论主键
     * @return 结果
     */
    @Override
    public int deleteMessageReplyByIds(Long[] ids)
    {
        return messageReplyMapper.deleteMessageReplyByIds(ids);
    }

    /**
     * 删除评论信息
     * 
     * @param id 评论主键
     * @return 结果
     */
    @Override
    public int deleteMessageReplyById(Long id)
    {
        return messageReplyMapper.deleteMessageReplyById(id);
    }
}
